import com.lpf.transaction.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 功能描述：xml 配置事务
 */
public class SpringXmlTransaction {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext app = new ClassPathXmlApplicationContext("spring-xml-transaction.xml");
        UserService userService = (UserService) app.getBean("userService");
        userService.addOfXml();
    }

}
